submitted-bind_umask2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 28 Dec 2025 16:32:33 +0000 (17:32 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sun, 28 Dec 2025 16:32:33 +0000 (17:32 +0100)
commit70bc100e5a20807f41328e250c033326604e589f
treea5fc52a03270dfc40e55ad35df64aaa50b2f919b
parent88022cb7af48c52dfeb28802ab76e7dc3d7a61cc
submitted-bind_umask2

2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix bind when umask is e.g. 0777.

        * sysdeps/mach/hurd/bind.c (__bind): Pass mode 0666 to __dir_mkfile
        instead of final mode, so that call __ifsock_getsockaddr can always
        succeed, before calling __file_chmod to fix the mode according to umask,
        before calling __dir_link to show the file.

Part of the original fix was committed, the other hasn't been yet, see Roland's
"Harumph" reply to
https://sourceware.org/ml/libc-alpha/2014-08/msg00408.html

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name submitted-bind_umask2.diff
sysdeps/mach/hurd/bind.c